package exception;

public enum ExceptionCode {
    DESSERT_ALONE("甜品不能单独购买"),
    TOO_MANY_ITEMS("商品数量超限"),
    ERROR("系统异常"),
    EMPTY("订单不能为空"),
    NO_MAIN_FOOD("必须包含主食"),
    MODIFY_FORBIDDEN("禁止修改"),
    ORDER_NOT_FOUND("订单未找到"),
    ITEM_INVALID("无效商品"),
    PAID_ORDERS("已支付的订单不能取消"),
    ORDERS_30MINUTE("订单未到30分钟");
   final String msg;
    ExceptionCode(String msg){
        this.msg = msg;
    }
}
